import request from '@/utils/request'

/**
 * 获取系列列表
 * @param data
 */
export function getBrandSeries(data?: any) {
  return request({
    url: '/zgyp-recycle/api/v1/brandSeries/page',
    method: 'post',
    data,
  })
}

/**
 * 获取新增系列
 * @param data
 */
export function addtBrandSeries(data?: any) {
  return request({
    url: '/zgyp-recycle/api/v1/brandSeries/save',
    method: 'post',
    data,
  })
}
/**
 * 系列修改
 * /shesd-asset/api/v1/asset/category
 *
 * @param data
 */
export function updateBrandSeries(data: any) {
  return request({
    url: '/zgyp-recycle/api/v1/brandSeries/update',
    method: 'put',
    data,
  })
}

/**
 * 详情
 * /shesd-asset/api/v1/asset/category/{id}
 * @param params
 */
export function detailBrandSeries(params: any) {
  return request({
    url: `/zgyp-recycle/api/v1/brandSeries/detail`,
    method: 'get',
    params,
  })
}

/**
 * 资产目录删除
 *
 */
export function delBrandSeries(data: any) {
  return request({
    url: `/zgyp-recycle/api/v1/brandSeries/del`,
    method: 'delete',
    data,
  })
}
